<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ page import="java.util.*" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Candiate Registration | Hot Jobs | IT Jobs, Jobs In India</title>
<sx:head />

</head>

<body>
<%
List<Integer> yearsList = new ArrayList<Integer>();
Integer curYear = Calendar.getInstance().get(Calendar.YEAR);
for(int i = 1970; i <= curYear; i++){
	yearsList.add(new Integer(i));
}
request.setAttribute("yearsList",yearsList);
%>

<table cellpadding="20" cellspacing="0" bgcolor="#bfbfbf" width="100%">
	<tr>
		<td>
		<h3>Candidate profile edit</h3>
		<hr />
		You can update your profile details here
		</td>
	</tr>
</table>
<br />
<br />
<table align="center" cellpadding="20" cellspacing="0" border="5"
	bordercolor="#bfbfbf" width="100%">
	<tr>

		<td><s:form action="update" theme="simple" name="jsRegFrm"
			javascriptTooltip="true">
			<s:push value="#session.js">
			<table align="center" border="0" cellpadding="5" cellspacing="2">
				<tr>
					<td colspan="3" id="reg-form-section-title"><strong>Account
					Information</strong></td>
				</tr>
				<tr>
					<td colspan="3"><s:hidden name="username" maxlength="15" /></td>
				</tr>
				<tr>
					<td colspan="3"><s:hidden name="password" maxlength="15" id="pass"/></td>
				</tr>
				<tr>
					<td width="150">Email:</td>
					<td width="225"><s:textfield name="email" maxlength="120" /></td>
					<td width="300"><s:fielderror fieldName="email" /></td>
				</tr>
				<tr>
					<td colspan="3" id="reg-form-section-title"><strong>Personal
					&amp; Contact Details</strong></td>
				</tr>

				<tr>
					<td width="150">First Name:</td>
					<td width="225"><s:textfield name="firstName" maxlength="50" /></td>
					<td width="300"><s:fielderror fieldName="firstName" /></td>
				</tr>
				<tr>
					<td width="150">Last Name:</td>
					<td width="225"><s:textfield name="lastName" maxlength="50" /></td>
					<td width="300"><s:fielderror fieldName="lastName" /></td>
				</tr>
				<tr>
					<td width="150">Mobile Number:</td>
					<td width="225"><s:textfield name="mobileNumber"
						maxlength="10"
						tooltip="Your cellphone number without country code. eg. 9819671002" /></td>
					<td width="300"><s:fielderror fieldName="mobileNumber" /></td>
				</tr>
				<tr>
					<td width="150">Gender:</td>
					<td width="225"><s:radio name="gender"
						list="#{'true':'Male','false':'Female'}" /></td>
					<td width="300"><s:fielderror fieldName="gender" /></td>
				</tr>
				<tr>
					<td width="150">Current Location:</td>
					<td width="225"><s:select list='#application.locationList'
						listKey="id" listValue="name" name="currentLocation"></s:select></td>
					<td width="300"><s:fielderror fieldName="currentLocation" /></td>
				</tr>
				<tr>
					<td width="150">Preferred Location:</td>
					<td width="225"><s:select list='#application.locationList'
						listKey="id" listValue="name" name="preferredLocation"></s:select></td>
					<td width="300"><s:fielderror fieldName="preferredLocation" /></td>
				</tr>
				<tr>
					<td width="150">Nationality</td>
					<td width="225"><s:select list='#{"1":"India"}'
						name="nationality" /></td>
					<td width="300"><s:fielderror fieldName="nationality" /></td>
				</tr>
				<tr>
					<td width="150">Current Employer:</td>
					<td width="225"><s:textfield name="currentEmployer"
						maxlength="120"></s:textfield></td>
					<td width="300"><s:fielderror fieldName="currentEmployer" /></td>
				</tr>
				<tr>
					<td width="150">Previous Employer:</td>
					<td width="225"><s:textfield name="previousEmployer"
						maxlength="120" /></td>
					<td width="300"><s:fielderror fieldName="previousEmployer" /></td>
				</tr>
				<tr>
					<td width="150">Designation
					<div style="color: grey; font-size: small; float: right;">(Current
					Job)</div>
					</td>
					<td width="225"><s:textfield name="designation" /></td>
					<td width="300"><s:fielderror fieldName="designation" /></td>
				</tr>
				<tr>
					<td width="150">Experience:</td>
					<td width="225"><s:select name="expYears"
						list="{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}" />&nbsp;
					Years &nbsp;&nbsp;<s:select name="expMonths"
						list="{0,1,2,3,4,5,6,7,8,9,10,11}" /> &nbsp; Months</td>
					<td width="300"><s:fielderror fieldName="expYears" /> <s:fielderror
						fieldName="expMonths" /></td>
				</tr>
				<%-- <tr>
					<td width="150">Job Category:</td>
					<td width="225"><s:select multiple="false" name="jobCategory"
						list="#{'01':'Software/Hardware','02':'sales','03':'Networking'}" /></td>
					<td width="300"><s:fielderror fieldName="jobCategory" /></td>
				</tr>  --%>
				<tr>
					<td width="150">Key Skills:</td>
					<td width="225"><s:textarea name="keySkills"
						cssStyle="width:150px; height:100px;" wrap="true"
						tooltip="Enter comma separated names of skills eg. java, J2EE, Hibernate " /></td>
					<td width="300"><s:fielderror fieldName="keySkills" /></td>
				</tr>
				<tr>
					<td colspan="3" id="reg-form-section-title"><strong>Education
					Details</strong></td>
				</tr>
				<tr>
					<td width="150">Highest Qualification:</td>
					<td width="225"><s:select name="highestQualification"
						list="#application.qualificationList" listKey="id"
						listValue="name" /></td>
					<td width="300"><s:fielderror fieldName="highestQualification" /></td>
				</tr>
				<tr>
					<td width="150">Specialization</td>
					<td width="225"><s:textfield name="specialization"/></td>
					<td width="300"><s:fielderror fieldName="specialization" /></td>
				</tr>
				<tr>
					<td width="150">Year of Passing:</td>
					<td width="225"><s:select list="#request.yearsList"
						name="yearOfPassing" /></td>
					<td width="300"><s:fielderror fieldName="yearOfPassing" /></td>
				</tr>
				<tr>
					<td width="150">Institute</td>
					<td width="225"><s:textfield name="institute" maxlength="120" /></td>
					<td width="300"><s:fielderror fieldName="institute" /></td>
				</tr>
				<tr>
					<td width="150">&nbsp;</td>
					<td width="225"><s:submit value="Update Profile" align="center" /></td>
					<td width="300">&nbsp;</td>
				</tr>
			</table>
			</s:push>
		</s:form></td>
	</tr>
</table>
</body>
</html>